package com.example.spring.spring.initializer;

import com.example.spring.spring.bean.factory.postProcessor.OrangeBeanFactory;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author: orange
 * @create: 2023-08-09 20:15
 * @description:
 */

public class OrangeInitializer implements ApplicationContextInitializer {
    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
        System.out.println("my initializer");
        applicationContext.addBeanFactoryPostProcessor(new OrangeBeanFactory());
    }
}
